<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php JHTML::_('behavior.tooltip'); ?>
<?php
	// Set toolbar items for the page
	$edit		= JRequest::getVar('edit',true);
	$text = !$edit ? JText::_( 'New' ) : JText::_( 'Edit' );
	JToolBarHelper::title(   JText::_( strtoupper('Htbn_don_dat_hang') ).': <small><small>[ ' . $text.' ]</small></small>' );
	JToolBarHelper::save();
	if (!$edit)  {
		JToolBarHelper::cancel();
	} else {
		// for existing items the button is renamed `close`
		JToolBarHelper::cancel( 'cancel', 'Close' );
	}
?>
<?php
		$lang =& JFactory::getLanguage();
		$extension = 'com_htbn_chi_tiet_don_dat_hang';
		$base_dir = JPATH_ADMINISTRATOR;
		$language_tag = 'vi-VN';
		$lang->load($extension, $base_dir, $language_tag, true);
?>
<script language="javascript" type="text/javascript">
	function submitbutton(pressbutton) {
		var form = document.adminForm;
		if (pressbutton == 'cancel') {
			submitform( pressbutton );
			return;
		}

		// do field validation
		submitform( pressbutton );
	}
</script>
<form action="<?php echo $this->action; ?>" method="post" name="adminForm" id="adminForm">
<div class="col width-70">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Details' ); ?></legend>
  <table class="admintable">
    <tr>
      <td width="100" align="right" class="key"><label for="wts_htbn_cong_ty_id"> <?php echo JText::_( 'FIELD_WTS_HTBN_CONG_TY_ID' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="wts_htbn_cong_ty_id" id="wts_htbn_cong_ty_id" size="72" maxlength="250" value="<?php echo $this->htbn_don_dat_hang->wts_htbn_cong_ty_id;?>" />
      </td>
    </tr>

	<tr>
      <td valign="top" align="right" class="key"><label for="ngay_gio_dat"> <?php echo JText::_( 'FIELD_NGAY_GIO_DAT' ); ?>: </label>
      </td>
      <td colspan="2" valign="middle"><?php echo JHTML::_('calendar', $this->lists['ngay_gio_dat'], 'ngay_gio_dat', 'ngay_gio_dat', "%Y-%m-%d", array('class'=>'inputbox', 'size'=>'25',  'maxlength'=>'45')); ?> </td>
    </tr>

	<tr>
      <td valign="top" align="right" class="key"><label for="ngay_gio_lay"> <?php echo JText::_( 'FIELD_NGAY_GIO_LAY' ); ?>: </label>
      </td>
      <td colspan="2" valign="middle"><?php echo JHTML::_('calendar', $this->lists['ngay_gio_lay'], 'ngay_gio_lay', 'ngay_gio_lay', "%Y-%m-%d", array('class'=>'inputbox', 'size'=>'25',  'maxlength'=>'45')); ?> </td>
    </tr>

	<tr>
      <td width="100" align="right" class="key"><label for="wts_htbn_trang_thai_id"> <?php echo JText::_( 'FIELD_WTS_HTBN_TRANG_THAI_ID' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="wts_htbn_trang_thai_id" id="wts_htbn_trang_thai_id" size="72" maxlength="250" value="<?php echo $this->htbn_don_dat_hang->wts_htbn_trang_thai_id;?>" />
      </td>
    </tr>

    <tr>
      <td width="100" align="right" class="key"><label for=""> <?php echo JText::_('HTBN_CHI_TIET_DON_DAT_HANG'); ?>: </label>
      </td>
      <td>
		<a class="modal-button" rel="{handler: 'iframe', size: {x: 1000, y: 450}}" href="index2.php?option=com_htbn_chi_tiet_don_dat_hang&view=active_checkbox&tmpl=component&checkbox_id=<?php echo $this->htbn_don_dat_hang->wts_htbn_don_dat_hang_id; ?>"><?php echo JText::_( 'Details' ); ?></a>
      </td>
    </tr>

	<tr>
      <td valign="top" align="right" class="key"><label for="mo_ta"> <?php echo JText::_( 'FIELD_MO_TA' ); ?>: </label>
      </td>
      <td><?php
							// parameters : areaname, content, width, height, cols, rows, show xtd buttons
							echo $this->editor->display( 'mo_ta',  $this->htbn_don_dat_hang->mo_ta, '500', '300', '60', '20', array('pagebreak', 'readmore') ) ;
							?>
      </td>
    </tr>
  </table>
</fieldset>
</div>
<div class="col width-30">
	<?php
			echo $this->pane->startPane("params-pane");
			$title = JText::_( strtoupper('Parameters') );
			$title1 = JText::_( strtoupper('CHI_TIET_KHAC') );			
			echo $this->pane->startPanel( $title1, "detail-page" );?>
			<table align="center">
				<tr>
      <td valign="top" align="right" class="key"><?php echo JText::_( 'FIELD_PUBLISHED' ); ?>: </td>
      <td><?php echo $this->lists['published']; ?> </td>
    </tr>

	<tr>
      <td valign="top" align="right" class="key"><label for="created"> <?php echo JText::_( 'FIELD_CREATED' ); ?>: </label>
      </td>
      <td colspan="2" valign="middle"><?php echo JHTML::_('calendar', $this->lists['created'], 'created', 'created', "%Y-%m-%d %H:%M:%S", array('class'=>'inputbox', 'size'=>'25',  'maxlength'=>'45')); ?> </td>
    </tr>

	<tr>
      <td valign="top" align="right" class="key"><label for="created"> <?php echo JText::_( 'FIELD_MODIFIED' ); ?>: </label>
      </td>
      <td colspan="2" valign="middle"><?php echo JHTML::_('calendar', $this->lists['modified'], 'modified', 'modified', "%Y-%m-%d %H:%M:%S", array('class'=>'inputbox', 'size'=>'25',  'maxlength'=>'45')); ?> </td>
    </tr>

	<tr>
      <td valign="top" align="right" class="key"><label for="ordering"> <?php echo JText::_( 'FIELD_ORDERING' ); ?>: </label>
      </td>
      <td><?php echo $this->lists['ordering']; ?> </td>
    </tr> 
			</table>			
	<?php		
			echo $this->pane->endPanel();
			echo $this->pane->startPanel( $title, "detail-page" );
			echo $this->params->render('params');
			echo $this->pane->endPanel();
			echo $this->pane->endPane();
		?>	
</div>   
  <div class="clr"></div>
  <input type="hidden" name="option" value="com_htbn_don_dat_hang" />
  <input type="hidden" name="cid[]" value="<?php echo $this->htbn_don_dat_hang->wts_htbn_don_dat_hang_id; ?>" />
  <input type="hidden" name="task" value="" />
  <?php echo JHTML::_( 'form.token' ); ?>
</form>
